﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Structs
{
    public class Word
    {
        //поля xml файла
        private string form;
        private string norm;
        private List<string> attr = new List<string>();
        private List<Word> words = new List<Word>();//список привязанных слов

        public Word() { }

        public void Refresh()
        {
            form = string.Empty;
            norm = string.Empty;
            attr.Clear();
            words.Clear();
        }

        public string Form
        {
            get { return form; }
            set { form = value; }
        }
        public string Norm
        {
            get { return norm; }
            set { norm = value; }
        }
        public List<string> Attributs
        {
            get { return attr; }
            set { attr = value; }
        }
        public void AddAttr(string attr)
        {
            this.attr.Add(attr);
        }
        public void AddWord(Word word)
        {
            this.words.Add(word);
        }
        public List<Word> Words
        {
            get { return words; }
        }

    }
}
